package com.open.basic.tree;

import java.util.List;

/**
 * @author: system
 * @Date: 2024/4/24 22:15
 * @Version: V1.0
 * @description: desc:
 */

public class TreeModel {

    private String id;
    private String pid;
    private String name;
    private boolean disabled;

    private List<TreeModel> list;

    public TreeModel(String id, String pid, String name, boolean disabled) {
        this.id = id;
        this.pid = pid;
        this.name = name;
        this.disabled = disabled;
    }

    public String getId() {
        return id;
    }

    public TreeModel setId(String id) {
        this.id = id;
        return this;
    }

    public String getPid() {
        return pid;
    }

    public TreeModel setPid(String pid) {
        this.pid = pid;
        return this;
    }

    public String getName() {
        return name;
    }

    public TreeModel setName(String name) {
        this.name = name;
        return this;
    }

    public boolean isDisabled() {
        return disabled;
    }

    public TreeModel setDisabled(boolean disabled) {
        this.disabled = disabled;
        return this;
    }

    public List<TreeModel> getList() {
        return list;
    }

    public TreeModel setList(List<TreeModel> list) {
        this.list = list;
        return this;
    }
}
